﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoragePeriod.Model.RawDict;

namespace StoragePeriod.IDAL.RawDict
{
    /// <summary>
    /// 原料细类接口
    /// </summary>
    public interface I_RawMaterials
    {
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int id);

        /// <summary>
        /// 增加一条数据
        /// </summary>
        void Add(E_RawMaterials model);

        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(E_RawMaterials model);

        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int id);

        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool DeleteList(string idlist);

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        E_RawMaterials GetModel(int id);

        /// <summary>
        /// 获取符合要求的原料分类信息
        /// </summary>
        List<E_RawMaterials> GetModelListByWhere(E_RawMaterials eRawMaterialsInfo);
    }
}
